package com.dekaru.misc;

public class Computer {
	
    private int number;       		// number of the Computer
    private String description;      // description of the computer
    private double price;  			 // the price of the Computer

    public Computer() {
  		number = 0;
		description = "";
		price = 0d;
    }

    public Computer(int number, String description, double price) {
		this.number = number;
		this.description = description;
		this.price = price;
    }

    public int getNumber() {
		return number;
    }
    
    public String getDescription() {
		return description;
    }
    
    public double getPrice() {
		return price;
    }

    public void setNumber(int number) {
		this.number = number;
    }
 
    public void setDescription(String description) {
		this.description = description;
    }
 
    public void setPrice(double price) {
		this.price = price;
    }

    public boolean equals(Computer obj) {
    	return (this.getNumber() == obj.getNumber() && this.getDescription().equals(obj.getDescription())
    	               && this.getPrice() == obj.getPrice());
    }
    public String toString() {
        return getNumber() + " " + getDescription() + " " + getPrice();
    }
}